package cn.edu.neusoft.wuguangsheng.flowerimpression.model;

import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.UserInfoBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.iface.UserInfoIface;
import cn.edu.neusoft.wuguangsheng.flowerimpression.listener.TListener;
import cn.edu.neusoft.wuguangsheng.flowerimpression.service.AllService;
import retrofit2.Call;
import retrofit2.Retrofit;

public class UserInfoModel extends RetrofitBaseModel implements UserInfoIface<UserInfoBean> {
    private AllService allService;
    private Retrofit retrofit;
    public UserInfoModel(){
        retrofit=getRetrofit();
        allService=getAllService();
    }
    @Override
    public void getUserInfo(String userid, TListener<UserInfoBean> tListener) {
        Call<UserInfoBean> call = allService.getUserInfo(userid);
        callenqueue(call,tListener);

    }
}
